//
//  ZJNetworkTools.h
//  Weibo29
//
//  Created by 曾静 on 16/6/30.
//  Copyright © 2016年 qq. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZJUserAccount.h"
#import "ZJUserAccountTools.h"
//定义一个枚举的类型
typedef enum : NSUInteger {
    POST = 0,
    GET,
} RequestType;
//定义类型
typedef void(^SucessBlock)(id result);
typedef void (^FailBlock)(NSError *error);

@interface ZJNetworkTools : AFHTTPSessionManager

+ (instancetype)shareNetworktools;

//get以及post请求专用对 方法
- (void)NetWorkToolWithRequestType:(RequestType)type andUrlString:(NSString *)UrlString andParmers:(NSDictionary *)parmers andSuccessBlock:(SucessBlock)sucess andFailBlock:(FailBlock)fail;
//获取用户token的方法
-(void)getUserToken:(NSString *)code andSuccessBlock:(SucessBlock)sucess andFailBlock:(FailBlock)fail;
//获取用户的信息
-(void)getUserInfoWithUserAccount:(ZJUserAccount*)userAccount andSuccessBlock:(SucessBlock)sucess andFailBlock:(FailBlock)fail ;
//获取首界面的接口
-(void)getHomeDataWithSinceId:(int64_t)sinceId andMaxId:(ino64_t)maxId andSuccessBlock:(SucessBlock)sucess andFailBlock:(FailBlock)fail;
//发布微博,无图片仅仅是文字
-(void)publicWeiBoOnlyWordWithStatus:(NSString *)status andSuccessBlock:(SucessBlock)sucess andFailBlock:(FailBlock)fail;
//f发布微博,图片以及文字
-(void)publicWordAndImageWithStatus:(NSString *)status andImageList:(NSArray *)imageList andSuccessBlock:(SucessBlock)sucess andFailBlock:(FailBlock)fail;
@end
